package reduce.fz.com.reduce.bean;

import java.io.Serializable;
import java.util.HashMap;

import reduce.fz.com.reduce.constant.ParamConst;

/**
 * Created by qingshengzheng on 15/8/30.
 */
public class TeamDynamic implements Serializable {
    //小组动态id
    public Long dynamicid;
    //小组动态类型(1:加入小组，2退出小组，3发布了动态卡片，4见证了好友卡片，6,发布故事)
    public int dynamictype;
    //发布卡片
    public WitnessCard witnessCard;
    //故事卡片
    public StoryCard storyCard;

    public TargetSet targetSet;

    //源
    public User srcuser = new User();
    //动态归属人
    public Long uid;
    //动态简述
    public String shortDesc;
    //动态发布时间
    public Long pubtime;
    //圈子id
    public Long teamid;

    public String getShortDesc() {
        String info = "";
        switch (dynamictype) {
            case ParamConst.TEAM_DYNAMIC_TYPE_JOIN:
                info =   "加入了圈子";
                break;
            case ParamConst.TEAM_DYNAMIC_TYPE_QUIT:
                info =  "退出了圈子";
                break;
            case ParamConst.TEAM_DYNAMIC_TYPE_PUB_WITNESS:
                info =  "发布了动态";
                break;
            case ParamConst.TEAM_DYNAMIC_TYPE_WITNESS:
                info =  "见证了好友" + "『" + witnessCard.user.nickname + "』" + "的卡片";
                break;
            case ParamConst.TEAM_DYNAMIC_TYPE_TARGET_SET:
                info =  "设定了目标" + "『" + targetSet.desc + "』";
                break;
            case ParamConst.TEAM_DYNAMIC_TYPE_COMPLETE_TARGET:
                info =  "完成了目标" + "『" + targetSet.desc + "』";
                break;
            default:
                break;
        }
        return info;
    }

    //爱心值
    public Long love_score = 0L;
    //社交值
    public Long social_score = 0L;
    //体力值
    public Long energy_score = 0L;
    //智力值
    public Long intell_score = 0L;


}
